home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2002 March
/
PCWorld_2002-03_cd.bin
/
Software
/
TemaCD
/
xteq
/
setup.exe
/
{app}
/
plugins
/
XQ WinNT AutoLogin Settings.xpl
< prev
next >
Wrap
Text File
|
2001-04-12
|
2KB
|
67 lines
"FILE"="Xteq Systems X-Setup Plugin 6.0"
"TYPE"="1"
"COUNT"="3"
"UIPATH"="Network\Auto Login\Windows NT/2K/XP"
"NAME"="Settings"
"VERSION"="1.56"
"LANGUAGE"="VBScript"
"OSVERSION"="010101"
"TEXT 1"="User name"
"TEXT 2"="Password"
"TEXT 3"="Domain"
"DESCRIPTION 1"="Auto login can be used to eliminate the "Press Ctrl+Alt+Del to login" screen."
"DESCRIPTION 2"="Enter your user information here. The value for "Domain" is needed only if you are using a domain, else leave it blank."
"DESCRIPTION 3"="When you are finished, apply your changes and select the "General" plug-in to activate auto logon."
"AUTHOR"="Xteq Systems"
"CONTACTURL"="http://www.xteq.com"
"COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
"COMMENT 1"=" "
sRP="HKLM\Software\Microsoft\Windows NT\CurrentVersion\WinLogon\"
Sub Plugin_Initialize
if RegPathExists(sRP) then
s=RegReadValue(srp&"DefaultUserName")
SetUIElement 1,s
s=RegReadValue(srp&"DefaultPassword")
SetUIElement 2,s
s=RegReadValue(srp&"DefaultDomain")
SetUIElement 3,s
else
Disable
end if
End Sub
Sub Plugin_CheckData(ElementIndex)
End Sub
Sub Plugin_Apply(ElementIndex,ElementSubIndex)
s=GetUIElement(1)
Call RegWriteValue(srp&"DefaultUserName",s,1)
s=GetUIElement(2)
Call RegWriteValue(srp&"DefaultPassword",s,1)
s=GetUIElement(3)
If Len(s)>0 then
Call RegWriteValue(srp&"DefaultDomain",s,1)
else
s=RegReadValue(srp&"DefaultDomain")
if IsNull(s)=false and Len(s)>0 then
Call RegDeleteValue(srp&"DefaultDomain")
end if
end if
Logoff
End Sub
Sub Plugin_Terminate
End Sub